<p><?php echo $this->title; ?></p>

    
<? if (count($this->paginator)): ?>
<table class="listclass" width="100%" border="0" cellpadding="0" cellspacing="0">
    <thead>
      <tr>
          <?php
            foreach ( $this->cols as $i => $col ) {
                echo "<th " . ( isset( $this->colsTitleAttr[ $i ] ) ? $this->colsTitleAttr[ $i ]:"" ) . ' >'. $col . '</th>';
            }
            if ( !empty( $this->actions ) ) {
                echo "<th " . ( isset( $this->actionsTitleAttr ) ? $this->actionsTitleAttr:"" ) . ' >'. $this->actionsTitle . '</th>';
            }
          ?>
      </tr>
    </thead>

    <tbody>
        <? $i=0; foreach ($this->paginator as $row) : ?>
              <tr class=<?php echo ($i%2==0?'"even clickable"':'"odd clickable"') ?> 
                onclick="document.location='<?php echo $this->surl( null, 'edit', array( 'lovId'=> $row->id ) )?>'">
                <?php
                    foreach ( $this->cols as $j => $col ) {
                        echo "<td " . ( isset( $this->colsAttr[ $j ] ) ? $this->colsAttr[ $j ]:"" ) . ' >' . $row->{$j} . '</td>';
                    }
                    if ( !empty( $this->actions ) ) {
                        foreach ( $this->actions as $j => $action ) {
                            echo "<td " . ( isset( $this->actionsAttr[ $j ] ) ? $this->actionsAttr[ $j ]:"" ) . ' >';
                            echo $this->href( null, $j, $action, array( "lovId" => $row->id ) );
                            echo '</td>';
                        }
                    }
                ?>
              </tr>
        <? $i++; endforeach; ?>
    </tbody>
</table>
<?php echo $this->paginator ?>
<? endif; ?>
<p>
<?php echo $this->href( $this->controller, "edit", $this->listEditTitle ) ?>
</p>

